   <script lang="ts" setup>
import { ref } from "vue";
import monacoEditor from "./components/monacoEditor.vue";
import * as monaco from "monaco-editor";
const value = ref("let a = 234");
const language = ref("json");
const editorMounted = (editor: monaco.editor.IStandaloneCodeEditor) => {
  console.log("editor实例加载完成", editor);
};
</script>
   
   <template>
  <div class="container">
    <monacoEditor
      v-model="value"
      :language="language"
      height="500px"
      @editor-mounted="editorMounted"
    ></monacoEditor>
  </div>
</template>
